//
//  BSBaseModel.h
//  BaiSiBuDeJie
//
//  Created by bill on 16/8/25.
//  Copyright © 2016年 tsaievan. All rights reserved.
//

#import <Foundation/Foundation.h>

@class InfoModel,ListModel,UModel,VideoModel,TagsModel,GifModel,ImageModel,AudioModel;
@interface BSBaseModel : NSObject

@property (nonatomic, strong) InfoModel *info;

@property (nonatomic, strong) NSArray<ListModel *> *list;



//下载数据方法
+(void)downDataWithUrl:(NSString*)url successBlock:(void(^)(BSBaseModel *model))successBlock failBlock:(void(^)(NSError* err))failBlcok;

@end



@interface InfoModel : NSObject

@property (nonatomic, assign) NSInteger count;

@property (nonatomic, assign) NSInteger np;

@end

@interface ListModel : NSObject

@property (nonatomic, strong) VideoModel *video;
//赞
@property (nonatomic, copy) NSString *up;

@property (nonatomic, copy) NSString *ID;
//发表时间
@property (nonatomic, copy) NSString *passtime;

@property (nonatomic, strong) NSArray<TagsModel *> *tags;
//评论数
@property (nonatomic, copy) NSString *comment;
//帖子类型
/*
 image:图片  vidie:视频
 */
@property (nonatomic, copy) NSString *type;
//帖子标题
@property (nonatomic, copy) NSString *text;
//不赞
@property (nonatomic, assign) NSInteger down;

@property (nonatomic, copy) NSString *share_url;
//header数组里任选一个地址下载
@property (nonatomic, strong) UModel *u;
//分享的数量
@property (nonatomic, assign) NSInteger forward;

@property (nonatomic, assign) NSInteger status;

@property (nonatomic, copy) NSString *bookmark;

//新加的赞和点赞按钮的状态
//赞按钮的状态
@property(nonatomic,assign)BOOL upBtnStatus;
//不赞按钮的状态
@property(nonatomic,assign)BOOL downBtnStatus;

//----新增gif模型
@property (nonatomic, strong) GifModel *gif;
@property (nonatomic, strong) ImageModel *image;
@property (nonatomic, strong) AudioModel *audio;
@end

//用户的模型
@interface UModel : NSObject
//用户名
@property (nonatomic, copy) NSString *name;

@property (nonatomic, copy) NSString *uid;
//任选一个地址下载
@property (nonatomic, strong) NSArray<NSString *> *header;
//是否是黄钻
@property (nonatomic, assign) BOOL is_vip;
//是否vip
@property (nonatomic, assign) BOOL is_v;

@end

@interface VideoModel : NSObject
//视频的高
@property (nonatomic, assign) NSInteger height;
//视频小图片
@property (nonatomic, strong) NSArray<NSString *> *thumbnail;
//视频播放地址
@property (nonatomic, strong) NSArray<NSString *> *download;
//视频的宽
@property (nonatomic, assign) NSInteger width;
//视频播放次数
@property (nonatomic, assign) NSInteger playfcount;
//视频部时间
@property (nonatomic, assign) NSInteger duration;
//视频大图片
@property (nonatomic, strong) NSArray<NSString *> *thumbnail_small;

@property (nonatomic, strong) NSArray<NSString *> *video;

@property (nonatomic, assign) NSInteger playcount;

@end

@interface TagsModel : NSObject

@property (nonatomic, assign) NSInteger ID;

@property (nonatomic, copy) NSString *name;

@end
//---------------新增类型
@interface GifModel : NSObject
//下载地址
@property (nonatomic, strong) NSArray<NSString *> *download_url;

@property (nonatomic, assign) NSInteger height;

@property (nonatomic, assign) NSInteger width;
//动图
@property (nonatomic, strong) NSArray<NSString *> *images;
//缩略图
@property (nonatomic, strong) NSArray<NSString *> *gif_thumbnail;
@end

@interface ImageModel : NSObject
//中间的
@property (nonatomic, strong) NSArray *medium;

@property (nonatomic, assign) NSInteger height;

@property (nonatomic, strong) NSArray<NSString *> *download_url;

@property (nonatomic, assign) NSInteger width;
//小图
@property (nonatomic, strong) NSArray *small;
//缩略图
@property (nonatomic, strong) NSArray<NSString *> *thumbnail_small;
//大图
@property (nonatomic, strong) NSArray<NSString *> *big;
@end

@interface AudioModel : NSObject
@property (nonatomic, assign) NSInteger height;

@property (nonatomic, strong) NSArray<NSString *> *thumbnail;

@property (nonatomic, strong) NSArray<NSString *> *download_url;

@property (nonatomic, assign) NSInteger width;

@property (nonatomic, assign) NSInteger playfcount;

@property (nonatomic, assign) NSInteger duration;

@property (nonatomic, strong) NSArray<NSString *> *thumbnail_small;

@property (nonatomic, assign) NSInteger playcount;

@property (nonatomic, strong) NSArray<NSString *> *audio;
@end


